<div xmlns:th="http://www.thymeleaf.org">
    <div th:if="${pageInfo != null && pageInfo.list.size() != 0}">
        <table class="table table-striped mt-3">
            <thead>
            <tr>
                <td>部门编码</td>
                <td>部门简称</td>
                <td>部门全称</td>
                <td>上级部门</td>
                <td>是否启用</td>
                <td>操作</td>
            </tr>
            </thead>
            <tbody>
            <tr th:each="organ:${pageInfo.list}" th:attr="id=${organ.id}" >
                <td th:text="${organ.code}"></td>
                <td th:text="${organ.fullName}"></td>
                <td th:text="${organ.shortName}"></td>
                <td th:text="${organ.parentId}"></td>
                <td>
                    <input style="position:static;" type="checkbox" name="isStart" th:if="${organ.is_start} eq 1" value="1" checked/>
                    <input style="position:static;" type="checkbox" name="isStart" th:if="${organ.is_start} eq 0" value="0"/>
                </td>
                <td>
                    <a href="javascript:;" th:onclick="'javascript:del('+${organ.id}+');'" class="delete">删除</a>
                    <a th:href="@{'/sys/organization/update?id='+${organ.id}}">修改</a>
                    <a th:href="@{'/sys/organization/get?id='+${organ.id}}">明细</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div th:if="${pageInfo == null || pageInfo.list.size() == 0}">
        暂时没有记录.....
    </div>
</div>